CC = g++
INCLUDE = -I../include
OBJECT = threadserver.o Sock.o KeyParser.o STParser.o
DEBUGFLAGS = -DDEBUG -g
OBJECTFLAGS = -w -O

EXEFLAGS = -o
CFLAG = -c -g -Wno-deprecated

EXECPPNAME = threadserver
TARGET = threadserver

$(EXECPPNAME) : ${OBJECT}
	${CC} ${EXEFLAGS} ${EXECPPNAME} ${OBJECT} ${LIB}

threadserver.o : threadserver.cpp
	${CC} ${CFLAG} threadserver.cpp ${INCLUDE}

Sock.o : ../include/Sock.cpp
	${CC} ${CFLAG} ../include/Sock.cpp ${INCLUDE}

KeyParser.o : KeyParser.cpp
	${CC} ${CFLAG} KeyParser.cpp ${INCLUDE}

STParser.o : STParser.cpp
	${CC} ${CFLAG} STParser.cpp ${INCLUDE}


clean :
	rm -rf core *.o *.bug ${EXECPPNAME}

new :
	${MAKE} clean
	${MAKE}


